<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script>
    //  一组数据
    var nums = [12,4,21,5,87,06,23]
    // 获取这组的每一个值  按照顺序去获取   顺序从0开始
    // console.log(nums[0])
    // console.log(nums[1])
    // console.log(nums[2])
    // console.log(nums[3])
    // console.log(nums[4])
    // console.log(nums[5])

    // 共7条数据    顺序 0-6
    for (var i=0;i<7;i=i+1){
      // console.log(i)
      console.log(nums[i])
    }   
  </script>
</body>
</html>